package com.hfzy.ihk.facade.ivr.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2019/5/22.
 */
public enum CallInSource {

    FREESWITCH("fs呼入"),
    DONGJIN("东进呼入"),
    ALIYUN("阿里云呼入");

    private String desc;

    public String getDesc() {
        return desc;
    }

    CallInSource(String desc) {
        this.desc = desc;
    }

    private static Map<String, CallInSource> dataMap = new HashMap<>();

    static {

        for(CallInSource ev: CallInSource.values()){
            dataMap.put(ev.name(),ev);
        }
    }

    public static CallInSource fromName(String name){

        return dataMap.get(name);
    }
}
